package com.ycsd.invest.order.business.formplugin;

import com.google.gson.JsonObject;
import kd.bos.form.plugin.AbstractFormPlugin;
import kd.bos.form.control.Control;
import kd.bos.servicehelper.workflow.EventServiceHelper;

import java.util.EventObject;

public class TestFormPop extends AbstractFormPlugin {

    @Override
    public void afterBindData(EventObject e) {
        JsonObject data = new JsonObject();
        data.addProperty("code", 200);
        data.addProperty("msg", "消息");
        EventServiceHelper.triggerEventSubscribe("testSendMsgEvent", data.toString());
        this.getView().showSuccessNotification(e.getSource() + " : 加载成功");
    }
}
